<?php
/**
 * 住院病程记录首次模型
 * Created by PhpStorm.
 * User: zhang-hong
 * Date: 2017/3/8
 * Time: 14:11
 */
class ZhuyuanBingchengJiluShouciModel extends BaseModel
{
    //获取病人首次住院病程
    public function getZhuYuanBasicInfo($zhuyuan_id,$yiyuan_id)
    {
        $data = DB::select("gaishu","binglitedian","zhongyibianzhengyiju",
            "xiyibianzhengyiju","zhongyijianbiezhenduan","xiyijianbiezhenduan",
            "zhenliaojihua","jikecuoshi","doctor_name","record_time")
            ->from("zhuyuan_bingchengjilushouci")
            ->where("zhuyuan_id","=",$zhuyuan_id)
            ->and_where("yiyuan_id","=",$yiyuan_id)
            ->execute()
            ->offsetGet(0);
        return $data;
    }
}